package com.outsource.framework.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="t_yonghu")
@GenericGenerator(name="t_yh_identity",strategy="identity")
public class Tyonghu implements Serializable{

	private static final long serialVersionUID = 3871048971625654940L;

	@Id
	@Column(name="id",nullable=false,length=11)
	@GeneratedValue(generator="t_yh_identity")
	private Integer id;
	
	@Column(name="name")
	private String name;
	
	@Column(name="password")
	private String password;
	
	@Column(name="province")
	private String province;

	@Column(name="city")
	private String city;
	
	@Column(name="county")
	private String county;
	
	@Column(name="mobile")
	private String mobile;
	
	@Column(name="ip")
	private String ip;
	
	@Column(name="label")
	private String label;
	
	@Column(name="trajectory")
	private String trajectory;
	
	@Column(name="remark")
	private String remark;
	
	@Column(name="status")
	private String status;
	
	@Column(name="create_time")
	private Date createtime;
	
	@Column(name="update_time")
	private Date updatetime;

	public Tyonghu(){}
	
	public Tyonghu(String mobile,String password){
		this.mobile = mobile;
		this.password = password;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getTrajectory() {
		return trajectory;
	}

	public void setTrajectory(String trajectory) {
		this.trajectory = trajectory;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

}
